aa4d07db88783437560bc9c65dc46e31a988ca04,src/test/java/rapaio/graphics/ImageGraphicsTest.java,ImageGraphicsTest,tesPoints,#,204

Before Change


    public void tesPoints() throws IOException, URISyntaxException {

        RandomSource.setSeed(0);
        Frame df = Datasets.loadIrisDataset();

        Var x = updateValue(Math::log1p, jitter(df.var(0).solidCopy(), 0.01)).withName("x");
        Var y = updateValue(Math::log1p, jitter(df.var(1).solidCopy(), 0.01)).withName("y");

        Figure fig = gridLayer(1, 2)
                .add(points(x))

After Change


    @Test
    public void tesPoints() throws IOException, URISyntaxException {

        Var x = updateValue(Math::log1p, df.var(0)).withName("x");
        Var y = updateValue(Math::log1p, df.var(1)).withName("y");

        Figure fig = gridLayer(1, 2)
                .add(points(x))
                .add(points(x, y).xLim(-3, -1));

        if (show)
            WS.draw(fig);
        if (regenerate)
            ImageUtility.saveImage(fig, 500, 400, root + "/rapaio/graphics/points-test.png");
        BufferedImage bi1 = ImageUtility.buildImage(fig, 500, 400);